package cn.wolfcode.service.impl;

import cn.wolfcode.mapper.BusinessReportMapper;
import cn.wolfcode.qo.QueryObject;
import cn.wolfcode.service.IBusinessReportService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * Author wyy
 * Date 2021/1/17 15:09
 **/
@Service
public class BusinessReportServiceImpl implements IBusinessReportService {

    @Autowired
    private BusinessReportMapper businessReportMapper;
    @Override
    public PageInfo<HashMap> query(QueryObject qo) {
        PageHelper.startPage(qo.getCurrentPage(),qo.getPageSize());
        List<HashMap> list = businessReportMapper.listAll(qo);
        return new PageInfo<>(list);
    }
}
